html{
    font-size: 5.43704px;
}
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}
ul {
    list-style-type: none;
    padding: 0;
}
/* 滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background-color: rgb(236, 240, 241,0.5); 
}
::-webkit-scrollbar-track{
    -webkit-box-shadow:inset 0 0 4px rgba(0,0,0,0.3);
    border-radius:10px;
    background-color:rgb(236, 240, 241);
}
::-webkit-scrollbar-thumb{
    border-radius:10px;
    -webkit-box-shadow:inset 0 0 4px rgba(0,0,0,.3);
    background-color: rgb(189, 195, 199);
}
/* 背景 */
.bg-animation{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, red, darkred);
    display: none;
}

/* 中奖者 */
.join_container {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    perspective: 1000px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9;
    
    /* display: none; */
}
.join_container .joinuser {
    position: absolute;
    pointer-events: none;
    display: none;
}
.join_container .bz{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: url(../img/baozha.png) no-repeat center center;
    background-position: 0 0;
    background-size: 600% 900%;
    z-index: 7;
}
.closeWinner{
    position: absolute;
    width: 32px;
    height: 32px;
    background-color: white;
    top: 20%;
    right: 30%;
    border-radius: 50%;
    z-index: 3;
    cursor: pointer;
    pointer-events: auto;
}
.userbox {
  position: absolute;
  width: 60rem;
  height: 60rem;
  left: -30rem;
  top: -30rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}
.quan0 {
  position: absolute;
  width: 220%;
  top: -63%;
}
.userbox .headimg {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background-color: #631005;
  box-shadow: 0 0 40px 10px #fff;
  color: white;
  line-height: 5.5;
  text-align: center;
  font-size: 42px;
  z-index: 2;
}
.userbox .quan1 {
  position: absolute;
  width: 100%;
  animation: quanani 15s linear infinite;
}
.userbox .quan2 {
  position: absolute;
  width: 100%;
}
.userbox .nickname {
  position: absolute;
  width: 100%;
  position: absolute;
  top: 28rem;
  font-size: 2.5rem;
  color: #fff;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: rgb(216 50 251) 1px 1px 20px, rgb(216 50 251) 0px 1px 20px, rgb(216 50 251) 1px 0px 20px, rgb(232 225 13) 1px 1px 20px;
}

/* 抽奖配置界面 */
.main-container{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    display: grid;
    grid-template-rows:auto 1fr auto ;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'header header header'
                         'left main result'
                         'setting button result';
    background-color: lightblue;
}
.main-container .header{
    grid-area: header;
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 32px;
    color: white;
}
#lottery{
    grid-area: main;
    display: flex;
    max-width: 100%;
    overflow: hidden;
}
/* 修改参与者列表的样式 */
.participantsList {
    height: 300px;
    overflow: hidden;
    position: relative;
    margin: 20px auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    width: 1200px;
}
#gdcontainer .gd-outer{
    display: flex;
}
#gdcontainer .gd-content{
    display: flex;
    animation: loop 10s linear infinite;
}
.participantsList li {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    line-height: 120px;
    text-align: center;
    color: white;
    font-size: 18px;
    margin: 0 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: inline-block;
}
@keyframes loop {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

#award{
    grid-area: left;
    width: 150px;
    padding: 0 20px;
}
#award h1{
    font-size: 20px;
    color: white;
    text-align: left;
    letter-spacing: 2px;
}
.awardList{
    max-height: 400px;
    overflow-y: auto;
    font-size: 16px;
    line-height: 2;
    color: rgb(189, 195, 199);
    background-color: rgba(236,240,241,1);
    padding: 15px;
}
.button-draw{
    grid-area: button;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 68px;
}
.btn-active::after {
    content: '';
    position: absolute;
    left: -150%;
    top: -150%;
    width: 400%;
    height: 400%;
    background: conic-gradient(transparent, rgba(211,84,0,1), transparent 30%);
    animation: rotate 3s linear infinite;
    z-index: -1;
}
.btn-active{
    padding: 2px;
    position: relative;
    margin: 10px;
    border-radius: 5px;
    border-width: 2px ;
    border-color: transparent;
    overflow: hidden;
}
@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}
.lotterybtn{
    position: relative;
    display: block;
    padding: 10px 20px;
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 2px;
    outline: none;
    border: none;
    border-radius: 5px;
    background-color: rgba(230,126,34,1);
    color: white;
}
.lotterybtn:hover {
    cursor: pointer;
    background-color: rgba(230,126,34,1);
}

#winnerDisplay {
    grid-area: result;
    position: relative;
    width: 150px;
    padding: 0 20px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-end;
}
.winnerList{
    position: absolute;
    bottom:90px;
    width: 120px;
    border-radius: 10px;
    text-align: left;
    line-height: 2;
    font-size: 16px;
    padding: 15px;
    right: 20px; 
    display: flex;
    flex-direction: column;
    min-height: 20px;
    max-height: 200px;
    overflow-y:auto;
    overflow-x:hidden;
    background-color: rgba(236,240,241,1);
    color: rgba(127,140,141,1);
    letter-spacing: 5px;
    display: none;
}
.wbtn{
    height: 40px;
    padding: 10px 20px;
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 2px;
    outline: none;
    border: none;
    border-radius: 5px;
    background-color: rgba(230,126,34,1);
    color: white;
    cursor: pointer;
    margin-bottom: 10px;
}